Bonus Information: Extending Docusaurus
Special Features
Out of the box, Docusaurus does not include a method or plugin for some of the things we want to do. So those things, we've built ourselves! Here, some of those nitty-gritty details are described.
Logging In
TBD
Not supported at all out of the box. We integrated with SlashID - thanks to Vince and Ivan, who helped fix a bug we reported very quickly and allowed us to keep building.
If a user is not logged in, certain pages are hidden automatically. If a user guessed the URL, they are presented with a message advising them of their trespassing.
We also fixed the way that the button broke Docusaurus' dark theme, and matched its styling to the search bar.
Using 'Groups'
TBD
If a user is logged in but doesn't belong to the correct group, certain pages are hidden automatically. If a user guessed the URL, they are presented with a message advising them of their trespassing.
Custom Searchbars
TBC
Customers are presented with a different sidebar, than internal users. The 'customer' search index, has different results to the 'internal' search index - everything from this part of the website, is unavailable to customers.
Sidebar Generation
TBD
If a page is hidden from a user, then it is removed automatically from the sidebar on the left.
'No Auth' mode
Simple way to temporarily bypass the privacy settings, which allows our crawler to get to work and build indexes.
TBD